package us.mooresr.webtroopmanager.client.ui.cells;

import us.mooresr.webtroopmanager.shared.UserSummary;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;

public class UserCell extends AbstractCell<UserSummary> {


	@Override
	public void render(com.google.gwt.cell.client.Cell.Context context,
			UserSummary value, SafeHtmlBuilder sb) {
		if (value != null) {
			sb.appendEscaped(value.getRealName() + " (" + value.getUserName() + ")");
		}
		
	}


}